<template>
  <div id="unit" class="col-sm-3 form-input-group">
    <label for="f_print" class="control-label">打印格式:</label>
      <v-select id="print"
      v-model="print"
      placeholder='请选择'
      :value.sync="print"
      :options='printstyle'
      close-on-select clear-button>
    </div>
  </div>
</template>
<script>
/**
*公共组件
*打印方式
*/
import AppData from '../../../stores/AppData'
export default {
  props: ['print'],
  ready () {
    if (this.print.length > 0) {
      this.print = [this.print]
    } else {
      this.print = ['国税发票']
    }
  },
  computed: {
    printstyle () {
      return AppData.getParam('打印格式')
    }
  }
}
</script>
<style>
 #row{
  margin-top: 5px;
}
</style>
